import {FreeParams,Free} from './type'
import {get,post} from '../../utils/request' 
export const getList=(params:FreeParams)=>{

    return get("fee/list",params);
}

//单条删除
export const del=(id:number)=>{
    alert(id);
   return get("fee/delete",{id});
}

//批量删除
export const deleteAll=(ids:number[])=>{

    return post("fee/deleteall",{ids});
}


export const getFeeTypeList=(params:any):Promise<any> =>{

    return get("feetype/list",{params});
}


export const add=(data:Free)=>{

    return post("fee/add",data);
}